$(function(){
	$("#searchProgressCheckRecord_dategrid").datagrid_init;
	/*==初始化表格*/
	$('#searchProgressCheckRecord_dategrid').datagrid({
		loadMsg : "数据加载中",
		border:false,
		fit : true,
		title : "进度检查记录",
		fitColumns : true,
		pagination : true,
        emptyMsg : "数据加载完成,当前无数据!",
		rownumbers : true,
		singleSelect : true,
		toolbar:"#searchProgressCheckRecord_dategrid_toolbar",
		columns : [ [
		    // {field : 'id',				title : '主键',			width:50 , align:'center',hidden:true},
            {field:	 'checked',checkbox:true},
		    {field : '1',			title : '检查分项',			width:50 , align:'center',hidden:false},
		    {field : '2',			title : '检察人员',			width:50 , align:'center',hidden:false},
		    {field : '3',			title : '检查时间',			width:50 , align:'center',hidden:false},
		    {field : '4',			title : '是否通过',			width:50 , align:'center',hidden:false},
		    {field : '5',			title : '是否整改',			width:50 , align:'center',hidden:false},
		    {field : '6',			title : '备注',			width:50 , align:'center',hidden:false}
		] ],
        // data:eval('('+'{"rows":[{"1":"咨询回访","2":"we","3":"we","4":"we","5":"we","6":"we","7":"we"},{"1":"投诉回访","2":"wedwe","3":"fwe","4":"we","5":"we","6":"we","7":"we"}]}'+")"),
        // data:[{"1":"咨询回访","2":"we","3":"we","4":"we","5":"we","6":"we","7":"we"},{"1":"投诉回访","2":"wedwe","3":"fwe","4":"we","5":"we","6":"we","7":"we"}],
        onLoadSuccess:function(data){
            $(this).datagrid('doCellTip',{'max-width':'300px','delay':500});
            // $(this).datagrid({data:eval('('+'{"rows":[{"1":"咨询回访","2":"we","3":"we","4":"we","5":"we","6":"we","7":"we"},{"1":"投诉回访","2":"wedwe","3":"fwe","4":"we","5":"we","6":"we","7":"we"}]}'+")")});
        }
	});

     // var obj = {"total":2,"rows":[{"1":"咨询回访","2":"we","3":"we","4":"we","5":"we","6":"we","7":"we"},{"1":"投诉回访","2":"wedwe","3":"fwe","4":"we","5":"we","6":"we","7":"we"}]};
     // $('#searchProgressCheckRecord_dategrid').datagrid('loadData',obj);

    // $('#searchProgressCheckRecord_dategrid').datagrid({data:eval('('+'{"rows":[{"1":"咨询回访","2":"we","3":"we","4":"we","5":"we","6":"we","7":"we"},{"1":"投诉回访","2":"wedwe","3":"fwe","4":"we","5":"we","6":"we","7":"we"}]}'+")")});

	// var params = {};
	// $("#searchProgressCheckRecord_dategrid").datagrid_pagination(basepath+"/user/v1/selectRecordList",JSON.stringify(params),"","" );

    /*查询按钮*/
	/*$("#searchProgressCheckRecord_btn_search").linkbutton({
		onClick:function(){
			var name = $("#searchProgressCheckRecord_Name").textbox("getValue");
            var datebegin=$.trim($("#searchProgressCheckRecord_DateBegin").datetimebox('getValue'));
            var dateend=$.trim($("#searchProgressCheckRecord_DateEnd").datetimebox('getValue'));
			var params = {};
			params.name = name;
			params.datebegin = datebegin;
			params.dateend = dateend;
            $("#searchProgressCheckRecord_dategrid").datagrid_pagination(basepath+"/user/v1/selectRecordList",JSON.stringify(params),"","" );
		}
	});*/

});
	